package cn.meomis.model;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import cn.meomis.common.entity.BaseEntity;

@Entity
@Table(name="t_value")
//@Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)  
public class Value extends BaseEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private int id;
    private int value;
    private String typename;
    private int type;
    private Date createdate;
    private int cheId;
    private int grandTotalValue;		//累计值
    
    
//    private String cheName;		//只是用来显示 车类型名称
    
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public int getValue() {
		return value;
	}
	public void setValue(int value) {
		this.value = value;
	}
	public String getTypename() {
		return typename;
	}
	public void setTypename(String typename) {
		this.typename = typename;
	}
	public int getType() {
		return type;
	}
	public void setType(int type) {
		this.type = type;
	}
	public Date getCreatedate() {
		return createdate;
	}
	public void setCreatedate(Date createdate) {
		this.createdate = createdate;
	}
	public int getCheId() {
		return cheId;
	}
	public void setCheId(int cheId) {
		this.cheId = cheId;
	}
	public int getGrandTotalValue() {
		return grandTotalValue;
	}
	public void setGrandTotalValue(int grandTotalValue) {
		this.grandTotalValue = grandTotalValue;
	}
	


}
